package it.polimi.travelDreamEJB.basicproductmanagement.dto;

import java.util.Date;

import javax.validation.constraints.NotNull;

public class SearchFlightDTO {
	
	private String airline;

	private String departure_airport;
	
	private String destination_airport;

	private String departure;

	private String destination;
	
	@NotNull
	private Date fromFlightDate;

	@NotNull
	private int minPrice;
	
	@NotNull
	private Date toFlightDate;

	@NotNull
	private int maxPrice;
	
	public SearchFlightDTO() {
		this.minPrice = 0;
		this.maxPrice = 10000;
		Date currentDate = new Date();
		this.fromFlightDate = currentDate;
		this.toFlightDate = currentDate;
		this.airline="";
		this.departure="";
		this.departure_airport="";
		this.destination="";
		this.destination_airport="";
	}

	public String getAirline() {
		return airline;
	}

	public void setAirline(String airline) {
		this.airline = airline;
	}

	public String getDeparture_airport() {
		return departure_airport;
	}

	public void setDeparture_airport(String departure_airport) {
		this.departure_airport = departure_airport;
	}

	public String getDestination_airport() {
		return destination_airport;
	}

	public void setDestination_airport(String destination_airport) {
		this.destination_airport = destination_airport;
	}

	public String getDeparture() {
		return departure;
	}

	public void setDeparture(String departure) {
		this.departure = departure;
	}

	public String getDestination() {
		return destination;
	}

	public void setDestination(String destination) {
		this.destination = destination;
	}

	public Date getFromFlightDate() {
		return fromFlightDate;
	}

	public void setFromFlightDate(Date fromFlightDate) {
		this.fromFlightDate = fromFlightDate;
	}

	public int getMinPrice() {
		return minPrice;
	}

	public void setMinPrice(int minPrice) {
		this.minPrice = minPrice;
	}

	public Date getToFlightDate() {
		return toFlightDate;
	}

	public void setToFlightDate(Date toFlightDate) {
		this.toFlightDate = toFlightDate;
	}

	public int getMaxPrice() {
		return maxPrice;
	}

	public void setMaxPrice(int maxPrice) {
		this.maxPrice = maxPrice;
	}
	
	

}
